/**
 * CluePriority枚举
 *
 * @author sxf
 * @email sxf02615@163.com
 * @date 2025/1/15
 */
package com.sxf.crm.enums;


import java.util.Arrays;


public enum CluePriority {
 
    HIGH("高"), 
    MEDIUM("中"),
    LOW("低");

    private final String label;

    CluePriority(String label) {
        this.label = label;
    }

    public String getLabel() {
        return label;
    }

    public static CluePriority fromValue(String value) {
        if (value == null) {
            return null;       
        }
        return Arrays.stream(CluePriority.values())
            .filter(priority -> priority.name().equals(value))
            .findFirst()
            .orElse(null);
    }
}
